<div class="tab-pane fade active in" id="one">
    <div class="alert alert-warning-light">
    1. 必须是关联公众号的小程序。<a href="/index/article/show?id=1" target="_blank">详情</a><br/>
    2. 已关联的小程序可被使用在图文消息、自定义菜单、模版消息和附近的小程序等场景中。
   
    
</div>
<form id="edit-form" class="form-horizontal form-ajax" role="form" data-toggle="validator" method="POST" action="">
	<div style="padding: 15px 45px">
		<div class="form-group">
	        <label for="c-appid" class="control-label col-xs-12 col-sm-12" style="text-align: left;">
	        	小程序APPID
	        </label>
	        <div class="col-xs-12 col-sm-12">
	            <input type="text" placeholder="wx123456789999" name="row[appid]" id="c-appid" class="form-control" />
	        </div>
	        <div style="clear: both;"></div>
	    </div>
	    <div class="form-group">
	        <label for="c-path" class="control-label col-xs-12 col-sm-12" style="text-align: left;">
	        	打开目录
	        </label>
	        <div class="col-xs-12 col-sm-12">
	            <input type="text" name="row[path]" placeholder="path/index" id="c-path" class="form-control" />
	        </div>
	        <div style="clear: both;"></div>
	    </div>
	    <div class="form-group">
	        <div class="col-xs-12 col-sm-12">
	            <input type="radio" value="text" checked="" name="row[type]"> 文字  
	            <input type="radio" value="image" name="row[type]"> 图片
	        </div>
	        <div style="clear: both;"></div>
	    </div>
	    <div class="form-group acontent content-text">
	        <div class="col-xs-12 col-sm-12">
	            <input type="text" placeholder="小程序名称" name="row[content]" id="c-content" class="form-control" />
	        </div>
	        <div style="clear: both;"></div>
	    </div>
	    <div class="acontent content-image" style="display: none">
	        <div class="input-group">
	            <input id="c-image" class="form-control" size="35" name="row[image]" type="text" value="">
	           
	            <div class="input-group-addon no-border no-padding">
	                <span><button type="button" id="faupload-image" class="btn btn-danger faupload" data-input-id="c-image" data-mimetype="image/jpeg,image/png,image/jpg,image/bmp" data-url="{:url('ajax/wxupload')}" data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
	                
	            </div>
	            <span class="msg-box n-right"></span>
	        </div>
	        <ul class="row list-inline faupload-preview" id="p-image"></ul>
	    </div>
	</div>
    <div class="form-group layer-footer">
        <label for="c-content_source_urls" class="control-label col-xs-12 col-sm-12">　</label>
        <div class="col-xs-12 col-sm-12 text-right">
            <button type="button" class="btn btn-success btn-embossed btn-confirm-pm" id="_submit">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed reset-btn">{:__('Reset')}</button>
        </div>
    </div>
</form>